#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class SkillRcd : Business.BusinessBase<SkillRcd, int>
	{
		#region Fields and Properties

		private String parentCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ParentCode
		{
			get { return parentCode; }
			set
			{
				if (value != parentCode)
				{
					MarkChanged("ParentCode");
					parentCode = value;
				}
			}
		}

		private String des = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Des
		{
			get { return des; }
			set
			{
				if (value != des)
				{
					MarkChanged("Des");
					des = value;
				}
			}
		}

		private Decimal skillScore = 0.0m;
		/// <summary>
		/// 
		/// </summary>
		public Decimal SkillScore
		{
			get { return skillScore; }
			set
			{
				if (value != skillScore)
				{
					MarkChanged("SkillScore");
					skillScore = value;
				}
			}
		}

		private Decimal konwLegeLvl = 0.0m;
		/// <summary>
		/// 
		/// </summary>
		public Decimal KonwLegeLvl
		{
			get { return konwLegeLvl; }
			set
			{
				if (value != konwLegeLvl)
				{
					MarkChanged("KonwLegeLvl");
					konwLegeLvl = value;
				}
			}
		}

		private DateTime declareDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime DeclareDate
		{
			get { return declareDate; }
			set
			{
				if (value != declareDate)
				{
					MarkChanged("DeclareDate");
					declareDate = value;
				}
			}
		}

		private String staffCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String StaffCode
		{
			get { return staffCode; }
			set
			{
				if (value != staffCode)
				{
					MarkChanged("StaffCode");
					staffCode = value;
				}
			}
		}

		private String certCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String CertCode
		{
			get { return certCode; }
			set
			{
				if (value != certCode)
				{
					MarkChanged("CertCode");
					certCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public SkillRcd()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override SkillRcd DataSelect(int id)
		{
			return Services.DALService.SkillRcdService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.SkillRcdService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.SkillRcdService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.SkillRcdService.Delete(this);
		}

		#endregion Base overrides
	}
}
